package com.scut.scutzone.exception;

/**
 * @author: lifeng Chan
 * @date: 2021/4/27 16:48
 * @description: 业务类型错误。
 *
 * "此处定义code对应的错误类型"
 */
public class BusinessException extends RuntimeException{
     int error_code;

     public BusinessException(int code,String msg){
         super(msg);
         this.error_code=code;
     }

     public int code(){
         return error_code;
     }
}

